<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Femart Living 管理后台</title> 
<link rel="shortcut icon" href="http://www.femart.cn/favicon.gif" type="image/gif"/> 
<link rel="stylesheet" href="/statics/css/shopadmin.css" type="text/css" media="screen, projection"/>  
</head>
<body id="shopadmin" class=""> 
<div style="visibility: visible;" class="container"> 
<div id="header" class="header"> 
<div class="hd1"> <h1 class="shopname" id="logo">  
<a id="shop_title_block" href="index.php?ctl=system/setting&amp;act=basicinfo">Femart Living</a>    
</h1>  
</div> 
<div class="hd2"> 
<div class="top-menu" id="mainMenus">  
<?php foreach($menus as $k => $v){?>
<a class="tab <?php if($k == $tab) echo 'current';?>" id="top-tab-goods" href="/?tab=<?php echo $k;?>" name="goods"><span><?php echo $v['text'];?></span></a>  
<?php }?>
<!-- 
<div class="tab blankbutton1"><a id="top-tab-setting" href="index.php?ctl=system/setting&amp;act=welcome">
<span>商店配置</span></a>
<a id="top-tab-tools" href="index.php?ctl=system/tools&amp;act=welcome"><span style="margin-left:5px">工具箱</span></a>
</div> --> 
<a target="_blank" href="http://www.femart.cn" class="tab greenbutton"><span>浏览前台</span></a>  
<!--End--> 
</div> 
<div class="top-link clearfix"> 
<div class="span-auto user-name">您好, 超级管理员</div> 
<div class="span-auto">[&nbsp;<a href="index.php?ctl=admin/profile&amp;act=operator">帐号设置</a>&nbsp;]</div>  
<div class="span-auto">[&nbsp;<a target="_top" href="index.php?ctl=passport&amp;act=logout">退出</a>&nbsp;]</div>  
<div class="span-auto"><a href="index.php?ctl=dashboard&amp;act=index">桌面</a></div> 
</div> 
</div> 
</div> 
<div id="sidecontent" style="height: 458px;"> 
<div id="submenu_goods" style="">
<div> <div class="section cur" style="font-weight: bold;">功能菜单</div>
<div class="g-menu-sec" id="g_menu_sec_1" style=""> 
<?php foreach($menus[$tab]['items'] as $k => $v):?>
<div class="g-level-1 g-level-1-withchild">
<span class="title"><?php echo $v['text'];?></span>
</div> 
<div id="m_d_1" class="g-level-2">  
<?php foreach($v['items'] as $v):?>
<a href="<?php echo $v['url'];?>" target="right_main"><?php echo $v['text'];?></a>
<?php endforeach;?>    
</div> 
<?php endforeach;?> 
</div>
</div>
</div>
</div> 
<div title="开启或关闭侧边栏" class="toggle-bar" id="leftToggler" style="height: 458px;">
<div class="left-toggler">&nbsp;</div></div> 
<div id="workground"> 
<iframe name="right_main" id="right_main" frameborder="0" src="/goods/goodslist.html"></iframe>
</div>
</div> 
 <style type="text/css">
 .hide{display:none;}
 </style>
<script src="/statics/js/package/jquery-1.7.1.min.js" type="text/javascript"></script> 
<script type="text/javascript">
$(document).ready(function(){
	setting_size();
	$(window).resize(function() {
	  setting_size()
	});
	$('#leftToggler').click(function(){
		$('#sidecontent').toggleClass("hide");
		if($('#sidecontent').attr('class').indexOf('hide') >= 0)
		{
			$(this).css('left',0);
			$('#workground').css('margin-left','8px');
		}
		else
		{
			$(this).css('left','143px');
			$('#workground').css('margin-left','151px');
		}
	});
	var old = '';
	$('.list-table > tbody > tr').hover(function(){
		old = $(this).attr('class');
		$(this).addClass('even');
	}, function(){
		$(this).attr('class', old);	
	});
});
function setting_size()
{
	var h = $(this).height()-80;
	var w = $(this).width()-143;
   	$('#leftToggler').height(h);
	$('#sidecontent').height(h);
	$('#right_main').width(w).height(h);
	
	//$('#main').height(h-110);
}
</script>
 </body>
</html>